package com.example.springbott.wx_bean_heheer;


/**
 * @author 1784549954@qq.com
 * @since 2022/11/22 15:29
 */


public class DateTest1 {
    private Integer id;
    private String orderStatusText;
    private Integer aftersaleStatus;
    private Boolean isGroupin;
    private String orderSn;
    private Double actualPrice;
    private Integer number;
    private String picUrl;
    private Double price;
    private Integer innerId;
    private String goodsName;
    private String[] specifications;
    private Integer comment;
    private Integer orderStatus;

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(String orderStatusText) {
        if(orderStatusText.equals("101")){
            this.orderStatusText = "待付款";
        }else if (orderStatusText.equals("201")){
            this.orderStatusText = "已付款";
        }else if (orderStatusText.equals("301")){
            this.orderStatusText = "已发货";
        }else if (orderStatusText.equals("401")){
            this.orderStatusText = "已收货";
        }else if(orderStatusText.equals("203")){
            this.orderStatusText = "已退款";
        }else if (orderStatusText.equals("103")){
            this.orderStatusText = "系统已取消";
        }else if (orderStatusText.equals("102")){
            this.orderStatusText = "用户已取消";
        }else if (orderStatusText.equals("202")){
            this.orderStatusText = "已售后正在退款中";
        }else if (orderStatusText.equals("402")){
            this.orderStatusText = "系统收货";
        }else if (orderStatusText.equals("403")){
            this.orderStatusText = "已申请售后";
        }
    }

    public Integer getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Integer aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public Boolean getIsGroupin() {
        return isGroupin;
    }

    public void setIsGroupin(Double isGroupin) {
        if (isGroupin == 0.0){
            this.isGroupin = false;
        }else {
            this.isGroupin = true;
        }
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(Double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getInnerId() {
        return innerId;
    }

    public void setInnerId(Integer innerId) {
        this.innerId = innerId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String[] getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String[] specifications) {
        this.specifications = specifications;
    }
}
